<template>
    <div>
    <p v-for="(cate, index) in catelist" :key="index">
        申请人：{{cate.name[0]}}
        请假原因：{{cate.descrip[0]}}
        开始时间：{{cate.start_time[0]}}
        结束时间：{{cate.end_time[0]}}
        审批人：{{cate.approver[0]}}
    </p>
        </div>

</template>

<script>
export default {
    data() {
        return {
            id:this.$route.query.id,
            catelist:[],
            uid:''
        }
    },

    mounted:function(){
        this.axios.get("http://localhost:8000/get_cate/",{params:{'uid':uid}}).then(res=>{
            console.log(res.data)
            this.catelist = res.data
        })
    }
}
</script>

<style>

</style>